package cn.tedu.mybatisexercise2.mapper;

import cn.tedu.mybatisexercise2.pojo.entity.category;
import cn.tedu.mybatisexercise2.pojo.vo.categoryVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    int insert(category cg);

    List<category>selectAll();

    category selectById(int id);

    void deleteById(int id);

    int updateById(category cg);

    int selectcount();

    List<categoryVO>selectCol();

    int deletes(Integer[] ids);

    int updateByIds(category cg);
}